import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './plugins/element.js'
// 导入normalize.css
import 'normalize.css'
import 'nprogress/nprogress.css'

//引入面包屑组件
import MianBaoXie from '@/components/breadcrumb'

//引入公共样式
import '@/assets/css/public.css'
//引入字体图标样式
import '@/assets/iconfont/iconfont.css'

import * as API from '@/http/api'

//引入过滤器
import * as filters from '@/filters'

//引入vue-quill-editor富文本编辑器
import VueQuillEditor from 'vue-quill-editor'

//引入vue-quill-editor富文本编辑器css样式
import 'quill/dist/quill.core.css' // import styles
import 'quill/dist/quill.snow.css' // for snow theme
import 'quill/dist/quill.bubble.css' // for bubble theme

//注册
Vue.use(VueQuillEditor)


Object.keys(filters).forEach(key => {
   Vue.filter(key,filters[key])
 })



Vue.prototype.$API = API

//全局组件
Vue.component('MBX',MianBaoXie)



Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
